package mark.tom.gear.base.callback

/**
 * @Description: 基本的callback接口
 * @Author: ttmk110@163.com
 * @Package: mark.tom.gear.base.Interface
 * @Date: 2021/1/15
 * @Copyright: 版权归 Mark 所有
 * <ModifyLog>
 * @ModifyContent:
 * @Author:
 * @Date: </ModifyLog>
 */
interface CallBack<P, R> {

    /**
     * Description: 成功回调
     * Copyright: Copyright (c) 2021
     * Project: Gear
     * Author: ttmk110@163.com
     * Date: 2021/1/18 17:41
     */
    fun onSuccess(param: P): R

    /**
     * Description: 失败回调
     * Copyright: Copyright (c) 2021
     * Project: Gear
     * Author: ttmk110@163.com
     * Date: 2021/1/18 17:41
     */
    fun onFail(param: P): R
}